<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="../admin/authority.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@include file="headScriptAD.jsp"%>
<script type="text/javascript" src="${pageContext.request.contextPath}/assets/js/admin/cs85000script.js"></script>
</head>
<body>
<input type="hidden" id="url_address" name="url_address" value="">
<input type="hidden" id="agent_browser" name="agent_browser" value="">
	<div class="wrapper">
		<!-- BEGIN Top-Bar -->
		<%@ include file="../fragments/header.jsp"%>
		<!-- END Top-Bar -->

		<div id="detail-area" class="clearfix">
			<!-- BEGIN SIDEMENU -->
			<div class="hidden-xs hidden-sm page-sidebar" id="side-menu-bar">
				<ul class="page-sidebar-menu">					

					<!-- <div id="displaymenu"></div>  -->
					<%@ include file="../admin/menu.jsp" %>

				</ul>
			</div>
		<!-- End Side Menu -->
		
		<div class="col-sm-12 col-xs-12" id="right-side">
			<div id="navigator-bar"><i class="fa fa-home"></i> หน้าหลัก <i class="fa fa-angle-right ml-5 mr-5"></i>การจัดการข้อมูลลูกค้าที่ใช้บริการ</div><!--End navigator-bar-->
			<!-- Start detail-area -->
			<div>
				<div id="page-header" class="clearfix">
					<div>การจัดการข้อมูลลูกค้าที่ใช้บริการ</div>
				</div>
				
				<!-- ### Error / Success Message ### -->
				<div id="success_message" class="alert alert-success hide"> <span class="fa-stack fa-lg"> <i class="fa fa-circle fa-stack-2x"></i> <i class="fa fa-check fa-stack-1x fa-inverse"></i> </span><span id="content_sucess"></span></div>
				<div id="error_message" class="alert alert-danger hide"> <span class="fa-stack fa-lg"> <i class="fa fa-circle fa-stack-2x"></i> <i class="fa fa-times fa-stack-1x fa-inverse"></i></span><span id="content_error"></span></div>
				
				
				<!-- Start form-detail -->
				<div class="form-detail clearfix">
					<form role="form" class="form-horizontal">
						<div class="search-box  no-radius">
							<div class="form-group clearfix search-header no-radius">
								<div class="pull-left">เพิ่มข้อมูลลูกค้าที่ใช้บริการ</div>
								<div class="pull-right">
									<div id="hide-button"><i class="fa fa-chevron-circle-up"></i></div>
								</div>
							</div>
							
							<div id="box-body">
								
								<div class="form-group clearfix mt-20 ">
								<div class="col-sm-2 mt-5"></div>
									<div class="col-sm-1 mt-5">
											<label for="inputSiteId">รหัส</label>
									 		<input type="text" class="form-control" id="inputSiteId" name="code" >
									
									</div>
									<div class="col-sm-4 mt-5">
										<label for="inputSiteName">ชื่อลูกค้า</label>
								 		<input type="text" class="form-control" id="inputSiteName" name="desp" >
									
									</div>
									<div class="col-sm-4 mt-5">
											<label for="inputSiteName">ชื่อแพ็คเกจ</label>
								 			<select
												class="form-control" id="inputPackageName">
												<option value="">-- เลือกแพ็คเกจ --</option>
											</select>
											
									</div>
								
				  				</div>
				
								<div class="form-group mt-20 clearfix search-footer no-radius">
									<div class="col-sm-12 text-center">
										<button type="button" id="btnSave" class="btn btn-primary"><i class="fa fa-floppy-o"></i> บันทึก</button>
										<button  type="button" id="btnClear" class="btn btn-primary"><i class="glyphicon glyphicon-refresh"></i> ล้างข้อมูล</button>
									</div>
								</div>
							</div>
							<!-- END BOX-BODY -->
						</div>
					</form>
				</div>
				<!-- End detail-area -->
				<div class="form-detail clearfix" style="margin-top:-20px;padding-top: 0px;">
				<div class="form-list" id="form-list" >
					<form role="form" name="form" action="" method="POST">
						<div class="list-detail-area">						
							<table id="siteDataTable" class="stripe hover cell-border" cellspacing="0" width="100%" align="center">
	        					<thead>
	            					<tr style="background-color: #399bca; color:white; font-size: 0.9em;">
	                					<th style="border-right: 1px solid #999">ลำดับ</th>
										<th style="border-right: 1px solid #999">รหัส</th>
										<th style="border-right: 1px solid #999 " class="text-center">ชื่อลูกค้า</th>
										<th style="border-right: 1px solid #999 " class="text-center">แพ็คเกจ</th>
										<th>จัดการ</th>
	            					</tr>
	        					</thead> 						
	    					</table>
	
	    					<input type="hidden" name="oldSiteId" id="oldSiteId" value=""/>		
	    					<input type="hidden" name="deleteSiteId" id="deleteSiteId" value=""/>	
	    						
						</div>
				
					</form>
				</div>

				<div class="modal fade" id="confirmSaveModal" tabindex="-1" role="dialog" aria-labelledby="confirmModal" aria-hidden="true">
				    <div class="modal-dialog" style="width: 400px">
				        <div class="modal-content">
				            <div class="modal-header">
				            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				            <h4 class="modal-title">ยืนยันการบันทึกข้อมูลลูกค้าที่ใช้บริการ</h4>
				            </div>
				            <div class="modal-body">
				            	<span class="fa-stack fa-lg mr-10" style=" color:#FC0"> <i class="fa fa-exclamation-triangle fa-stack-2x"></i></span>
				            	<span id="modal_content_confirmSaveModal"></span>
				            </div>
				            <div class="modal-footer">
				                <button onclick="SaveCommand()" type="button"  class="btn btn-primary"><i class="fa fa-floppy-o"></i> ยืนยัน</button>
				                <button onclick="cancel()"  type="button" class="btn btn-danger" data-dismiss="modal"><i class="glyphicon glyphicon-floppy-remove"></i> ยกเลิก</button>
				        	</div>
				    	</div>
				  	</div>
				</div>
				<div class="modal fade" id="confirmDeleteModal" tabindex="-1" role="dialog" aria-labelledby="confirmModal" aria-hidden="true">
				    <div class="modal-dialog" style="width: 400px">
				        <div class="modal-content">
				            <div class="modal-header">
				            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				            <h4 class="modal-title">ยืนยันการลบข้อมูลลูกค้าที่ใช้บริการ</h4>
				            </div>
				            <div class="modal-body">
				            	<span class="fa-stack fa-lg mr-10" style=" color:#FC0"> <i class="fa fa-exclamation-triangle fa-stack-2x"></i></span>
				            	<span id="modal_content_confirmModal"></span>
				            </div>
				            <div class="modal-footer">
				                <button onclick="DeleteCommand()" type="button"  class="btn btn-primary"><i class="fa fa-floppy-o"></i> ยืนยัน</button>
				                <button onclick="cancel()" type="button" class="btn btn-danger" data-dismiss="modal"><i class="glyphicon glyphicon-floppy-remove"></i> ยกเลิก</button>
				        	</div>
				    	</div>
				  	</div>
				</div>
				<div class="modal fade" id="warningModal" tabindex="-1" role="dialog" aria-labelledby="warningModal" aria-hidden="true">
			  	  <div class="modal-dialog" style="width: 400px">
			        <div class="modal-content">
			            <div class="modal-header">
			            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
			            <h4 class="modal-title">กรุณากรอกข้อมูลให้ถูกต้อง</h4>
			            </div>
			            <div class="modal-body">
			            	<span class="fa-stack fa-lg mr-10" style=" color:#FC0"> <i class="fa fa-exclamation-triangle fa-stack-2x"></i></span>
			            	<span id="modal_content"></span>
			            </div>
			            <div class="modal-footer" style="text-align: center;">
			                <button type="button" class="btn btn-primary" data-dismiss="modal"><i class="glyphicon glyphicon-ok"></i> ตกลง</button>    
			        	</div>
			    	</div>
			  	</div>
				</div>

			</div>
			<div id="footer-detail">Copyright © สงวนลิขสิทธิ์ พ.ศ.2557 โดย การประปานครหลวง</div>
		
			</div>
			<!-- End detail-area -->
			
		</div>	
	</div>
 <!-- End Detail-area-->
 			
</div>
<!-- End Wrapper -->
</body>
</html>